package acm.pta4;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;

public class T3 {
    public static void main(String[] args) throws IOException {
        BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
        String read=null;
        List<String> list=new ArrayList<>();
        while (!".".equals(read = in.readLine())) {
            list.add(read);
        }
        if (list.size()<2){
            System.out.println("Momo... No one is for you ...");
        }else if(list.size()<14){
            System.out.println(list.get(1)+" is the only one for you...");
        }else {
            System.out.println(list.get(1)+" and "+list.get(13)+" are inviting you to dinner...");
        }
    }
}
